package com.sky.service.impl;

import com.sky.entity.Setmeal;
import com.sky.mapper.UserDishMapper;
import com.sky.service.UserSetmealService;
import com.sky.vo.DishItemVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class UserSetmealServiceImpl implements UserSetmealService {
   @Autowired
    private UserDishMapper userDishMapper;

    @Override
    public List<Setmeal> list(Integer categoryId) {
        return userDishMapper.list(categoryId);
    }

    @Override
    public List<DishItemVO> getDishBySetmealId(Long id) {
        return userDishMapper.getDishBySetmealId(id);
    }
}
